import { defineConfig } from 'umi';
import routes from './routes';

export default defineConfig({
  routes: routes,
  proxy: {
    '/api': {
      target: 'https://www.syc1030.top:3001/',
      changeOrigin: true,
      pathRewrite: { '^/api': '' },
    },
  },
  plugins: ['./config/customPlugin'],
});
